﻿using System.Web.Mvc;
using Diploma.Models;

namespace DiplomaWeb.Controllers
{
    [Authorize(Roles = "Administrator")]
    public class AdministratorsController : MasterController
    {
        public AdministratorsController(DataManager dataManager) : base(dataManager)
        {
        }

        public ActionResult Home()
        {
            return View();
        }

        public ActionResult Levels()
        {
            ViewData.Model = DataManager.QualificationLevelsRepository.GetAllLevels();
            return View();
        }

        public ActionResult StudentsGroups()
        {
            ViewData.Model = DataManager.QualificationLevelsRepository.GetAllLevels();
            return View();
        }

        public ActionResult Students()
        {
            ViewData.Model = DataManager.QualificationLevelsRepository.GetAllLevels();
            return View();
        }

        public ActionResult Lecturers()
        {
            //ViewData["Roles"] = new SelectList(new Role[] { RolesUtil.Administrator, RolesUtil.SystemManager },"RoleId","Name");
            //ViewData.Model = DataManager.LecturersRepository.GetAllLecturers();

            ViewData.Model = DataManager.LecturersRepository.GetAllLecturers();
            return View();
        }

        public ActionResult News()
        {
            return View();
        }
    }
}